package com.lsw.jgyf.model;

import java.util.List;

/**
 * Created by lsw on 2018/7/15.
 */

public class BannerModel {

    /**
     * data : [{"id":2,"title":"134","img_url":"http://127.0.0.1/mobile_shop/public/upload/20180623/7b7f1319736602eaa9571191f2445fb9.png"},{"id":1,"title":"442","img_url":"http://127.0.0.1/mobile_shop/public/upload/20180623/7b7f1319736602eaa9571191f2445fb9.png"}]
     * total : 2
     */

    private int total;
    /**
     * id : 2
     * title : 134
     * img_url : http://127.0.0.1/mobile_shop/public/upload/20180623/7b7f1319736602eaa9571191f2445fb9.png
     */

    private List<DataEntity> data;

    public void setTotal(int total) {
        this.total = total;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public static class DataEntity {
        private int id;
        private String title;
        private String url;
        private String img_url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public void setImg_url(String img_url) {
            this.img_url = img_url;
        }

        public int getId() {
            return id;
        }

        public String getTitle() {
            return title;
        }

        public String getImg_url() {
            return img_url;
        }
    }
}
